// 品牌列表数据
var listPp=[  
    {
        "shadowP":"试试太古汇店",
        "shiLogo":"public/img/shi.png",
        "shadowSpn":"广州市天河区天河路22号太古汇H楼2222号"
    },
    {
        "shadowP":"试试太古汇店",
        "shiLogo":"public/img/shi.png",
        "shadowSpn":"广州市天河区天河路22号太古汇H楼2222号"
    }
];
// 风格
var listStyle=[
    {
        "styleImg":"public/img/model.png",
        "styleP":"2016/12/12"
     },
     {
        "styleImg":"public/img/model.png",
        "styleP":"2016/12/12"
     }
];
// 上新
var listNew=[
    {
        "newImg":"public/img/newlist.png"
    },
     {
        "newImg":"public/img/newlist.png"
    }
];
// 优惠
var listDiscount = [
        {
             "discountImg":"public/img/model.png",
             "discountH1":"TRY2016冬季新品发布会",
             "discountH2":"广州太古汇店",
             "discountH3":"共有造型20套",
             "discountH4":"活动可用8套造型",
             "discountP":"12/01-1/31",
             "discountA":"discount.html"
        },
        {
             "discountImg":"public/img/model.png",
             "discountH1":"TRY2016冬季新品发布会",
             "discountH2":"广州太古汇店",
             "discountH3":"共有造型20套",
             "discountH4":"活动可用8套造型",
             "discountP":"12/01-2/31",
             "discountA":"#"
        },
        {
             "discountImg":"public/img/model.png",
             "discountH1":"TRY2016冬季新品发布会",
             "discountH2":"广州太古汇店",
             "discountH3":"共有造型20套",
             "discountH4":"活动可用8套造型",
             "discountP":"12/01-3/31",
             "discountA":"#"
        },
        {
             "discountImg":"public/img/model.png",
             "discountH1":"TRY2016冬季新品发布会",
             "discountH2":"广州太古汇店",
             "discountH3":"共有造型20套",
             "discountH4":"活动可用8套造型",
             "discountP":"12/01-4/31",
             "discountA":"#"
        }
        
]; 
var vm = new Vue({
    el:"#app",
    data:{
        listPp:listPp, //品牌
        listStyle:listStyle,//风格
        listNew:listNew,//上新
        listDiscount:listDiscount,//优惠
        titleP2:
    "广州试试网络科技有限公司创立于2015年，公司位于广州市天河区，旗下产品「一试」是专注为品牌服装企业打通线上线下，实现O2O闭环的时尚搭配社交平台,「一试」利用移动互联网终端智能硬件，促进消费者在实体店的购物体验，并通过社交网络使消费者可以更快了解商品信息、门店动态，为消费者提供互动贴心方便的购物新体验。",
    iscurP:true,//加关注
    isbox1:true,//menucur1
    isbox2:false,//menucur2
    isbox3:false,//menucur3
    isbox4:false,//menucur4

    iscenterPpCur:false,
    iscenterStyleCur:true,
    isdiscountCur:true,
    isnewCur:true,

    bannerImg:"public/img/banner.png"
    },
    methods:{
        gzP:function(){
            this.iscurP=!this.iscurP;
        },
        menucli1:function(){
                this.isbox1=true;//menucur1
                this.isbox2=false;//menucur2
                this.isbox3=false;//menucur3
                this.isbox4=false;//menucur4
                this.iscenterPpCur=false;
                this.iscenterStyleCur=true;
                this.isdiscountCur=true;
                this.isnewCur=true;
            console.log('品牌');
        },
         menucli2:function(){
             this.isbox1=false;//menucur1
             this.isbox2=true;//menucur2
             this.isbox3=false;//menucur3
             this.isbox4=false;//menucur4
             this.iscenterPpCur=true;
             this.iscenterStyleCur=false;
             this.isdiscountCur=true;
             this.isnewCur=true;
           console.log('风格');
        },
         menucli3:function(){
             this.isbox1=false;//menucur1
             this.isbox2=false;//menucur2
             this.isbox3=true;//menucur3
             this.isbox4=false;//menucur4
             this.iscenterPpCur=true;
             this.iscenterStyleCur=true;
             this.isdiscountCur=false;
             this.isnewCur=true;
          console.log('优惠');
        },
         menucli4:function(){
             this.isbox1=false;//menucur1
             this.isbox2=false;//menucur2
             this.isbox3=false;//menucur3
             this.isbox4=true;//menucur4
             this.iscenterPpCur=true;
             this.iscenterStyleCur=true;
             this.isdiscountCur=true;
             this.isnewCur=false;
          console.log('上新');
        }
    }
})

 // var centerCur = document.getElementsByClassName('centerCur');
 // var menuCur = document.getElementsByClassName ('menuCur');
 // for(var i=0;i<menuCur.length;i++){
 //      menuCur[i].onclick=function(){
               
 //        for(var i=0;i<menuCur.length;i++){
 //             // menuCur[i].className = '';
 //              // console.log(vm.isbox)
 //              // menuCur[i].isbox=false;
 //                 // vm.isbox=false;
 //                 // menuCur[i].className=''
 //       }
 //        vm.isbox=true;
        
 //        // console.log(menuCur[1].length)
 //      }
      

 // }